// import baseLayout from "..";
const baseLayout = () => import("@/layout/baseLayout.vue");
const workbench = () => import("@/views/dashboard/workbench/index.vue");
const monitoring = () => import("@/views/dashboard/monitoring/index.vue");
const anaLyse = () => import("@/views/visualization/anaLyse/index.vue");
const data = () => import("@/views/visualization/data/index.vue");
const Inquire = () => import("@/views/list/Inquire/index.vue");
const card = () => import("@/views/list/card/index.vue");
const groupForms = () => import("@/views/Formm/groupForms/index.vue");
const stepForm = () => import("@/views/Formm/stepForm/index.vue");
const basicDetails = () => import("@/views/detail/basicDetails/index.vue");
const fail = () => import("@/views/outcome/fail/index.vue");
const succeed = () => import("@/views/outcome/succeed/index.vue");
const Page403 = () => import("@/views/exception/403.vue");
const info = () => import("@/views/user/info/index.vue");
const setting = () => import("@/views/user/setting/index.vue");

export default [
  {
    path: "/index",
    name: "仪表盘",
    component: baseLayout,
    children: [
      {
        path: "/index/monitoring",
        name: "工作台",
        component: monitoring,
      },
      {
        path: "/index/workbench",
        name: "实时监控",
        component: workbench,
      },
    ],
  },
  {
    path: "/visualization",
    name: "数据可视化",
    component: baseLayout,
    children: [
      {
        path: "/visualization/anaLyse",
        name: "分析页",
        component: anaLyse,
      },
      {
        path: "/visualization/data",
        name: "多维数据分析",
        component: data,
      },
    ],
  },
  {
    path: "/list",
    name: "列表页",
    component: baseLayout,
    children: [
      {
        path: "/list/Inquire",
        name: "查询表格",
        component: Inquire,
      },
      {
        path: "/list/card",
        name: "卡片列表",
        component: card,
      },
    ],
  },
  {
    path: "/Formm",
    name: "表单页",
    component: baseLayout,
    children: [
      {
        path: "/Formm/groupForms",
        name: "分步表单",
        component: groupForms,
      },
      {
        path: "/Formm/stepForm",
        name: "分组表单",
        component: stepForm,
      },
    ],
  },
  {
    path: "/detail",
    name: "详情页",
    component: baseLayout,
    children: [
      {
        path: "/detail/basicDetails",
        name: "基础详情页",
        component: basicDetails,
      },
    ],
  },
  {
    path: "/outcome",
    name: "结果页",
    component: baseLayout,
    children: [
      {
        path: "/outcome/fail",
        name: "失败页",
        component: fail,
      },
      {
        path: "/outcome/succeed",
        name: "成功页",
        component: succeed,
      },
    ],
  },
  {
    path: "/exception",
    name: "错误页",
    component: baseLayout,
    children: [
      {
        path: "/exception/403",
        name: "403",
        component: Page403,
      },
      {
        path: "/exception/404",
        name: "404",
        component: Page403,
      },
    ],
  },
  {
    path: "/user",
    name: "个人中心",
    component: baseLayout,
    children: [
      {
        path: "/user/info",
        name: "用户信息",
        component: info,
      },
      {
        path: "/user/setting",
        name: "用户设置",
        component: setting,
      },
    ],
  },
];
